import http from "@/untils/http"
import type { ImemberData,IAddMemberData } from "@/untils/type"

// 会员列表
export const getMemberListAPI = (data: ImemberData) => {
  return http({
    url: '/vip/vipList',
    method: 'get',
    data,
  })
}

// 添加会员
export const addMemberAPI = (data:IAddMemberData) => {
  return http({
    url:'/vip/add',
    method:'post',
    data,
  })
}

//修改会员
export const updateMemberAPI=(data:ImemberData)=>{
  return http({
    url:'/vip/update',
    method:'post',
    data
  })
}

//删除会员
export const deleteMemberAPI=(data:any)=>{
  return http({
    url:'/vip/delete',
    method:'get',
    data,
  })
}